package com.ssh.service;

import java.util.List;

import com.ssh.model.TableGoods;

import com.ssh.dataobject.JqGridSearchTo;
import com.ssh.dataobject.PageModel;

//import com.ssh.model.Users;
/**
 * @author zhangjiaqiang 用户service层接口
 * **/
public interface IGoodsService {
	public List<TableGoods> findAll();

	// public List<PeopleImage> findByPeopleImage(Object id);
	public abstract List<TableGoods> findAllPage(int offset, int pageSize);

	public abstract int countGoods();

	public abstract TableGoods getGoods(int id);

	public abstract TableGoods findGoods(String queryString);

	public abstract TableGoods findByName(String name);

	public abstract boolean addGoods(TableGoods goods);

	// public void delPeople(People p);

	public abstract boolean updateGoods(TableGoods goods);

	// public abstract boolean updatePeopleImage(PeopleImage peopleImage);

	// public abstract TablePeople login(String pname, String ppass);

	public abstract boolean delGoods(TableGoods goods);

	public abstract TableGoods findById(int id);

	// public abstract PeopleImage findByPeopleId(int id);
	public abstract PageModel queryGoods(JqGridSearchTo to);

	public abstract List<TableGoods> findGoodsListByHQL(String hql);
}
